//package com.example.demo.controller;
//
////import com.example.demo.entity.User;
//import com.example.demo.service.TestAsync;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping("/test")
//public class TestAsyncController {
//    @Resource
//    private TestAsync testAsync;
//    @PostMapping("/async")
//    public void async() {
//        for (int i = 0; i < 10; i++) {
//            testAsync.doAsync();
//        }
//    }
//}
